<!DOCTYPE HTML>
<html>

<body>
    <!-- 
    <audio src="多媒体和图形编程\images\Nightcor.mp3" controls="controls">
        Your browser does not support the audio element.
    </audio>

    <video controls="controls" src="多媒体和图形编程\images\Ava.mp4" width="320" height="240"></video> -->
    <script>
        // setTimeout(function () {
        //     console.log("first");
        //     setTimeout(function () {
        //         console.log("second");
        //         setTimeout(function () {
        //             console.log("third");
        //             setTimeout(function () {
        //                 console.log("fourth");
        //             }, 2000);
        //         }, 2000);
        //     }, 2000);
        // }, 2000);
        let pm = new Promise(function (resolve, reject) {
            //dosomething
        });
        console.log("go on");
        pm.then(function () {
            console.log("异步完成");
        });
    </script>
</body>

</html>